package com.ex1;

public abstract class Door {
    public abstract void open();
    public abstract void close();
}

class AlarmDoor extends Door implements Alarm {

    @Override
    public void open() {

    }

    @Override
    public void close() {

    }

    @Override
    public void alarm() {

    }
}
